<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			try {
			    const value = uni.getStorageSync('token')||'';
				console.log('当前token----------',value)
			    if (value) {
					
			    }else{
					uni.redirectTo({
					    url: "/pages/Login/index"
					});
				}
			} catch {
			    // error
				console.log('当前获取token失败')
				uni.redirectTo({
				    url: "/pages/Login/index"
				});
			}
		},
		onShow: function() {
			console.log('App Show')
			
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	page{
		// background-color:$G-bg-color;
	}
	.noData{
		min-height: 80vh;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>
